`timescale 1 ns / 100 ps 		//modify the parameters accordingly

module SevenSegEncoder_tb;
	reg [7:0] LSBBinary;
	reg [7:0] MSBBinary;
	reg ModeSel;

	wire [6:0] HexMSBH;
	wire [6:0] HexMSBL;
	wire [6:0] HexLSBH;
	wire [6:0] HexLSBL;

	SevenSegEncoder dut (
		 .LSBBinary(LSBBinary),
		 .MSBBinary(MSBBinary),
		 .ModeSel(ModeSel),
		 .HexMSBH(HexMSBH),
		 .HexMSBL(HexMSBL),
		 .HexLSBH(HexLSBH),
		 .HexLSBL(HexLSBL)
	);
	
	integer i;
	initial begin
		LSBBinary = 8'd0;
		MSBBinary = 8'd0;
		ModeSel = 0;
		
		for (i = 0; i <= 9999; i = i + 1) begin
			LSBBinary = i % 100;
			MSBBinary = i / 100;
			#5;
		end
		LSBBinary = 8'd0;
		MSBBinary = 8'd0;
		ModeSel = 1;
		
		for (i = 0; i <= 120; i = i + 1) begin
			LSBBinary = (i-1) % 60 + 40;
			MSBBinary = (i-1) / 60 + 98 ;
			#5;
		end
	end

endmodule